package com.project_doctor.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @TableName t_announcement_receiver
 */
@TableName(value ="t_announcement_receiver")
public class AnnouncementReceiver {
    private Long id;

    private Long announcementId;
    private Long receiverId;
    private Long senderId;

    private Integer readStatus;

    private Date readTime;

    @TableField(exist = false,update="false")
    private SystemAnnouncement systemAnnouncement;

    @TableField(exist = false,update="false")
    private Doctor receiver;
    @TableField(exist = false,update="false")
    private Doctor sender;

    public AnnouncementReceiver(Long announcementId, Long receiverId,Long senderId, Integer readStatus, Date readTime) {
        this.announcementId = announcementId;
        this.receiverId = receiverId;
        this.senderId = senderId;
        this.readStatus = readStatus;
        this.readTime = readTime;
    }
}